﻿using System;

namespace CC.Yacht.Utilities
{
    public static class RandomHelper
    {
        #region Private Fields
        private static readonly XorShiftRandom _Random = new XorShiftRandom();
        #endregion

        #region Public Methods
        public static DieFace GetDieFace()
        {
            return (DieFace) _Random.Next(1, 7);
        }

        public static int Next()
        {
            return _Random.Next();
        }

        public static int Next(int maxValue)
        {
            return _Random.Next(maxValue);
        }

        public static int Next(int minValue, int maxValue)
        {
            return _Random.Next(minValue, maxValue);
        }

        public static double NextDouble(double minValue, double maxValue)
        {
            return _Random.NextDouble(minValue, maxValue);
        }
        #endregion
    }
}
